From f5553a774c8304e150f5b8892d09be69ead38872 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sat, 26 Nov 2005 01:13:51 +0000 Subject: [PATCH] Fix the unpause_basic test. The console will appear to have failed, given the current Console.py API, because no bytes have come from it, but that's not a failure -- an unpaused domain has no reason to output any more data. We need to send a command to the domain before we can be sure whether it is alive or dead, so move the FAIL call, allowing the console connection to throw ConsoleError. Signed-off-by: Ewan Mellor --- tools/xm-test/tests/unpause/01_unpause_basic_pos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xm-test/tests/unpause/01_unpause_basic_pos.py b/tools/xm-test/tests/unpause/01_unpause_basic_pos.py index a4e5c3c65a..73a4a805c7 100644 --- a/tools/xm-test/tests/unpause/01_unpause_basic_pos.py +++ b/tools/xm-test/tests/unpause/01_unpause_basic_pos.py @@ -71,11 +71,11 @@ if status != 0: try: console = XmConsole(domain.getName(), historySaveCmds=True) except ConsoleError, e: - FAIL(str(e)) + pass try: run = console.runCmd("ls") except ConsoleError, e: - pass + FAIL(str(e)) # Close the console console.closeConsole() -- 2.30.2